package org.summer.lawyer.mail;

import jakarta.annotation.Resource;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;
import org.springframework.stereotype.Service;
import org.summer.lawyer.domain.vo.spuorder.SpuOrderVo;
import org.summer.lawyer.service.ISpuOrderService;

/**
 *
 */
@Service
public class SendMailTestService implements ApplicationEventPublisherAware {
    private ApplicationEventPublisher applicationEventPublisher;

    @Resource
    private ISpuOrderService spuOrderService;
    @Override
    public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
        this.applicationEventPublisher = applicationEventPublisher;
    }

    public void sendMail() {
        SpuOrderVo vo = spuOrderService.selectSpuOrderVoById(1805858468005376001L);
        //applicationEventPublisher.publishEvent(new PaymentSuccessEvent(this, vo.getOrderNumber(), vo.getOrderId()));
    }
}
